home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / zyxel-1.5 / zyxel-1 / usr / ZyXEL / zstate < prev    next >
Text File  |  1994-12-01  |  495b  |  21 lines

  1. #!/bin/sh
  2. # set/display ZyXEL answering state for specified tty.
  3. # this is only to be used when distinctive ringing is not in use, as it
  4. # only writes a single-line statefile.  when you have distinctive ringing,
  5. # you probably never modify the statefile anyway, and just create it using
  6. # an editor.
  7.  
  8. case $# in
  9.     0)    echo "Usage: $0 <ttyname> [<newstate>]"
  10.         exit 1
  11.         ;;
  12.  
  13.     1)    cat /usr/ZyXEL/state.$1
  14.         ;;
  15.  
  16.     *)  tty=$1
  17.         shift
  18.         echo $* >/usr/ZyXEL/state.$tty
  19.         ;;
  20. esac
  21.